package com.ruoyi.gather.api;

import com.ruoyi.common.core.constant.ServiceNameConstants;
import com.ruoyi.common.core.domain.R;
import com.ruoyi.gather.api.domain.ErpCollectProductExpand;
import com.ruoyi.gather.api.domain.ErpCollectProductSku;
import com.ruoyi.gather.api.domain.ErpProductUnifiedTakedown;
import com.ruoyi.gather.api.domain.ErpSellerStoreProduct;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

import java.util.List;

@FeignClient(contextId = "remoteCollectProductSkuService", value = ServiceNameConstants.GATHER_SERVICE)
public interface RemoteCollectProductSkuService {

    @PostMapping("/gather/collectProductSku/getCollectProductSkuList")
    public List<ErpCollectProductSku> getCollectProductSkuList(@RequestBody ErpCollectProductSku collectProductSku);

    @GetMapping("/gather/collectProductSku/getSpecBySkuCodeNew/{skuCode}")
    public R<Object> getSpecBySkuCodeNew(@PathVariable("skuCode") String skuCode);

    /**
     * 根据skuCode获取采集sku信息
     */
    @GetMapping("/gather/collectProductSku/getSkuInfoBySkuCode/{skuCode}")
    ErpCollectProductSku getSkuInfoBySkuCode(@PathVariable("skuCode") String skuCode);
    

    @GetMapping("/gather/collectProductSku/getImageBySkuCodeNew/{skuCode}")
    public R<Object> getImageBySkuCodeNew(@PathVariable("skuCode") String skuCode);
}
